package com.laiyima.zhongjiang.linghuilv.demo;

 import android.app.Application;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.os.Build;
 import android.os.StrictMode;

 import androidx.multidex.MultiDex;

 import org.xutils.x;


public class MyApplication extends Application {
    public static Context context;
    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        x.Ext.init(this); //初始化
//        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
//        if (Build.VERSION.SDK_INT >= 18){
//
//            builder.detectFileUriExposure();
//        }
//        StrictMode.setVmPolicy(builder.build());

    }


    @Override
    protected void attachBaseContext(Context newBase) {
        super.attachBaseContext(newBase);
         MultiDex.install(this);
    }

}
